<template>
    <div>
     这是{{ data.name }}{{ pp }}
    </div>
</template>

<script setup lang="ts">
import { inject, onActivated, reactive } from "vue";

    const data=reactive({
        name:"b"
    })

const pp=inject("ss")
    onActivated(()=>{
        console.log("b oooooooooooooooo");
    })
</script>

<style scoped>

</style>